package com.app.service;

import com.app.model.AdminUserModel;
import com.app.model.IntegralGoodsModel;
import com.app.model.UserModel;
import com.app.vo.IntegralGoodsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 16693103420
 * @since 2024-02-01
 */
public interface IntegralGoodsService extends IService<IntegralGoodsModel> {
    //查询列表
    IntegralGoodsVo getIntegralGoodsList(Integer page, Integer limit, AdminUserModel user, Integer areaId,String keyword);
    IntegralGoodsVo getIntegralGoodsList(Integer page, Integer limit,HttpServletRequest request);
    //兑换积分商品
    @Transactional
    String exchangeGoods(IntegralGoodsModel integralGoodsModel,Integer userId);
}
